#!/usr/bin/python
# -*- coding: utf-8 -*-
# doc see routes.example.py

default_application = 'web_pungi'
default_controller = 'default'
default_function = 'index'

routes_app = ((r'/(?P<app>welcome|admin|kybuilder|web_pungi)\b.*', r'\g<app>'),
              )

routes_in = (('/ap','/kybuilder/archive/proxy'), # archive proxy
             ('/ap/$anything','/kybuilder/archive/proxy/$anything'), # archive proxy
             ('/$app$anything','/$app$anything'),
             (r'.*?:https?://builder.kylin.com:[a-z]+ (?P<any>.*)', r'/kybuilder\g<any>'),
             (r'.*?:https?://distro.kylin.com:[a-z]+ (?P<any>.*)', r'/web_pungi\g<any>'),
             )

routes_out = ((r'/kybuilder/archive/proxy$anything',r'/ap$anything'), # archive proxy
              ('/$app$anything','/$app$anything'),
              )

logging = 'debug'

